home *** CD-ROM | disk | FTP | other *** search
-
-
-
- CCCCHHHHAAAACCCCLLLL((((1111)))) CCCCHHHHAAAACCCCLLLL((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- chacl - change the access control list of a file or directory
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- cccchhhhaaaaccccllll aaaaccccllll ppppaaaatttthhhhnnnnaaaammmmeeee............
- cccchhhhaaaaccccllll ----bbbb aaaaccccllll ddddaaaaccccllll ppppaaaatttthhhhnnnnaaaammmmeeee............
- cccchhhhaaaaccccllll ----dddd ddddaaaaccccllll ppppaaaatttthhhhnnnnaaaammmmeeee............
- cccchhhhaaaaccccllll ----RRRR ppppaaaatttthhhhnnnnaaaammmmeeee............
- cccchhhhaaaaccccllll ----DDDD ppppaaaatttthhhhnnnnaaaammmmeeee............
- cccchhhhaaaaccccllll ----BBBB ppppaaaatttthhhhnnnnaaaammmmeeee............
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _c_h_a_c_l changes the Access Control List (see _aaaa_cccc_llll(4)) for a file or
- directory. The _----_bbbb flag indicates that there are two ACLs, the first is
- the file access ACL and the second the directory default ACL. The _----_dddd flag
- is used to set only the default ACL of a directory. The _----_RRRR and _----_DDDD flags
- are used to remove the file access ACL and directory default ACL
- respectively, the _----_BBBB flag will remove all ACLs. The ACL(s) specified are
- applied to each file in the _pppp_aaaa_tttt_hhhh_nnnn_aaaa_mmmm_eeee arguments.
-
- Each ACL is a string which is processed via _aaaa_cccc_llll______ffff_rrrr_oooo_mmmm______tttt_eeee_xxxx_tttt(3c). These
- strings are made up of comma separated clauses each of which is of the
- form, tag:name:perm. Where _tttt_aaaa_gggg can be
-
- "user" (or "u")
- indicating that the entry is a user ACL entry.
-
- "group" (or "g")
- indicating that the entry is a group ACL entry.
-
- "other" (or "o")
- indicating that the entry is an other ACL entry.
-
- "mask" (or "m")
- indicating that the entry is a mask ACL entry.
-
- _nnnn_aaaa_mmmm_eeee is a string which is the user or group name for the ACL entry. A
- null _nnnn_aaaa_mmmm_eeee in a user or group ACL entry indicates the file's owner or
- file's group. _pppp_eeee_rrrr_mmmm is the string "rwx" where each of the entries may be
- replaced by a "-" indicating no access of that type, e.g. "r-x", "--x",
- "---".
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- A minimum ACL: cccchhhhaaaaccccllll uuuu::::::::rrrrwwwwxxxx,,,,gggg::::::::rrrr----xxxx,,,,oooo::::::::rrrr-------- ffffiiiilllleeee
- The file ACL is set so that the file's owner has rwx, the file's group
- has read and execute, and others have read only access to the file.
-
- An ACL that is not a minimum ACL, that is, one that specifies a user or
- group other than the file's owner or owner's group, must contain a mask
- entry: _cccc_hhhh_aaaa_cccc_llll _uuuu_::::_::::_rrrr_wwww_xxxx_,,,,_gggg_::::_::::_rrrr_----_xxxx_,,,,_oooo_::::_::::_rrrr_----_----_,,,,_uuuu_::::_gggg_uuuu_eeee_ssss_tttt_::::_rrrr_----_----_,,,,_mmmm_::::_::::_rrrr_----_xxxx _ffff_iiii_llll_eeee_1111 _ffff_iiii_llll_eeee_2222
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- CCCCHHHHAAAACCCCLLLL((((1111)))) CCCCHHHHAAAACCCCLLLL((((1111))))
-
-
-
- You can use the output of _llll_ssss _----_DDDD to get the ACL argument to _cccc_hhhh_aaaa_cccc_llll. To set
- the default and access ACLs on newdir to be the same as on oldir, you
- could type:
-
- _cccc_hhhh_aaaa_cccc_llll _----_bbbb _````_llll_ssss _----_dddd_DDDD _oooo_llll_dddd_dddd_iiii_rrrr _|||| _ssss_eeee_dddd _----_eeee _''''_ssss_////_...._****_\\\\_[[[[_////_////_'''' _----_eeee _''''_ssss_####_////_#### _####_'''' _----_eeee _''''_ssss_////_]]]]_$$$$_////_////_''''_````
- _nnnn_eeee_wwww_dddd_iiii_rrrr
-
-
- CCCCAAAAUUUUTTTTIIIIOOOONNNNSSSS
- _cccc_hhhh_aaaa_cccc_llll replaces the existing ACL. To add or delete entries, you must
- first do _llll_ssss _----_DDDD to get the existing ACL, and use the output to form the
- arguments to _cccc_hhhh_aaaa_cccc_llll.
-
- Changing the permission bits of a file will change the file access ACL
- settings (see _cccc_hhhh_mmmm_oooo_dddd(1)). Similarly file-creation mode masks can effect
- the access ACL settings of files created using directory default ACLs
- (see _uuuu_mmmm_aaaa_ssss_kkkk(1)).
-
- ACLs are filesystem extended attributes and are not typically archived or
- restored using conventional archiving utilities. See _aaaa_tttt_tttt_rrrr(1) for more
- information about Extended Attributes and see _xxxx_ffff_ssss_dddd_uuuu_mmmm_pppp(1m) or _tttt_aaaa_rrrr(1M) (_----_MMMM
- flag) for a method to back them up.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- acl(4), umask(1), acl_from_text(3c).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-